<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">
    <head>
        <title>TODO supply a title</title>
    </head>
    <body>
        <p:commandLink  value="Déconnexion"  onclick="confirmation.show()"  style="margin-left: 1100px;color: #6495ED"/>
        <p:menubar style="width: 1233px;background-color: #034763;color: #0FFFFFF;margin-right: 0px;margin-left: 120px">  
            <p:menuitem value="Accueil"  action="accueil"/>  
            <p:menuitem value="Mon profil" action="monProfil" />
        </p:menubar> 
        <h:form>
            <h:panelGrid columns="2">

                            <h:outputLabel value="Nom :" for="adresse" />
                            <h:inputText id="adresse :" value="#{MainController.curentUser.name}"  />
                            <h:outputLabel value="Prénom :" for="adresse1" />
                            <h:inputText id="adresse1" value="#{MainController.curentUser.lastname}"  />
                            <h:outputLabel value="E-mail :" for="adresse" />
                            <h:inputText id="adresse :" value="#{MainController.curentUser.email}"  />
                            <h:outputLabel value="Mot de passe :" for="adresse3" />
                            <h:inputText id="adresse3" value="#{MainController.curentUser.password}"  />

                            
               </h:panelGrid>

<p:commandButton id="submitButton" value="Enregistrer" action="#{MainController.inscrireContact()}"/>
        </h:form>


        <p:confirmDialog id="confirmDialog" message="Voulez-vous quitter l'application?"  
                         header="Tweenit" severity="alert" widgetVar="confirmation">  

            <p:commandButton id="confirm" value="Quitter"  oncomplete="confirmation.hide()"  ajax="false" style="font-size: 14px"/>   
                             
            <p:commandButton id="decline" value="Annuler" onclick="confirmation.hide()" ajax="false" type="button" style="font-size: 14px"/>   

        </p:confirmDialog>
        
    </body>
</html>
